package net.hxz.modules.services.impl;

import net.hxz.modules.dao.TextMapper;
import net.hxz.modules.pojo.Text;
import net.hxz.modules.services.ITextService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("textService")
public class TextService implements ITextService {
	
	@Autowired
	private TextMapper textMapper;

	@Override
	public Text get(long textId) {
		return textMapper.get(textId);
	}

	@Override
	public int mod(Text text) {
		return textMapper.update(text);
	}

}
